<template>
	<view class="exams">
		<view class="progressWrap">
			<view class="progress">
				<progress :percent="currPercent" stroke-width="8" active-mode="forwards" backgroundColor="#f9f8f6" activeColor="#4B88F3" :active="animationFlag"/>
			</view>
			<view class="quesNums">
				<view class="iconfont icon-caidan"></view>
				<view><text class="currQuesNum">{{currIndex}}</text>/{{queLen}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			animationFlag:{
				type:Boolean,
				default:true
			},
			currPercent:{
				type:Number
			},
			queLen:{
				type:Number
			},
			currIndex:{
				type:Number,
				default:1
			}
		},
		methods:{
			
		}
	}
</script>

<style lang='scss' scoped>
	.exams{
		width: 100%;
		background: #fff;
		position: fixed;
		left: 0;
		top: 0;
		box-shadow: 0 5rpx 8rpx rgba(0,0,0,0.02);
		z-index: 10;
	}
	.progressWrap{
		display: flex;
		height: 90rpx;
		justify-content: space-between;
		align-items: center;
		padding: 0 30rpx;
		.quesNums{
			font-size: $font-size26;
			color: $pss-text-color3;
			text-align: right;
			display: flex;
			height: 100%;
			align-items: center;
		}
		.progress{
			width: 80%;
			margin: 0 10rpx;
		}
	}
	/deep/.wx-progress-bar {
		border-radius: 20rpx;  
		box-shadow: 0 0 6px rgba(0,0,0,.1);
	}  
	/deep/.wx-progress-inner-bar {  
		border-radius: 20rpx;  
	}
</style>